home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gsiparm3.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.1 KB  |  61 lines

  1. /* Copyright (C) 1997, 2000 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gsiparm3.h,v 1.4 2000/09/19 19:00:29 lpd Exp $ */
  20. /* ImageType 3 image parameter definition */
  21.  
  22. #ifndef gsiparm3_INCLUDED
  23. #  define gsiparm3_INCLUDED
  24.  
  25. #include "gsiparam.h"
  26.  
  27. /*
  28.  * See Section 4.3 of the Adobe PostScript Version 3010 Supplement
  29.  * for a definition of ImageType 3 and 4 images.
  30.  */
  31.  
  32. /*
  33.  * If InterleaveType is 3, the data source for the mask is provided as an
  34.  * additional data source *before* the data sources for the pixel data.  For
  35.  * both InterleaveType 2 and 3, the client is responsible for always
  36.  * providing mask data before the pixel data that it masks.  (The
  37.  * implementation does not currently check this, but it should.)
  38.  */
  39. typedef enum {
  40.     interleave_chunky = 1,
  41.     interleave_scan_lines = 2,
  42.     interleave_separate_source = 3
  43. } gs_image3_interleave_type_t;
  44. typedef struct gs_image3_s {
  45.     gs_pixel_image_common;    /* DataDict */
  46.     int InterleaveType;
  47.     gs_data_image_t MaskDict;
  48. } gs_image3_t;
  49.  
  50. #define private_st_gs_image3()    /* in gximage3.c */\
  51.   gs_private_st_suffix_add0(st_gs_image3, gs_image3_t, "gs_image3_t",\
  52.     image3_enum_ptrs, image3_reloc_ptrs, st_gs_pixel_image)
  53.  
  54. /*
  55.  * Initialize an ImageType 3 image.
  56.  */
  57. void gs_image3_t_init(P3(gs_image3_t * pim, const gs_color_space * color_space,
  58.              gs_image3_interleave_type_t interleave_type));
  59.  
  60. #endif /* gsiparm3_INCLUDED */
  61.